<template>
	<!-- <view v-html="htmlContext">
		
	</view> -->
	<view>
	    <rich-text :nodes="htmlContext"></rich-text>
	</view>
</template>

<script>
	import { banners } from '../../api/banner';
	export default {
		data() {
			return {
				htmlContext:'',
				ind:0,
				list:[]
			}
		},
		onLoad(options) {
			this.ind = options.html
			this.getBanner()
		},
		methods: {
			getBanner(){
				banners().then(res => {
					this.list = res.data
					this.htmlContext = this.list[this.ind].description
				})
			}
		}
	}
</script>

<style>

</style> 
 